package com.ljx.funchat.transaction.service;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RabbitMqProducer {

    @Autowired
    private RabbitTemplate rabbitTemplate;

    public void sendMsg(String queue, Object body) {
        rabbitTemplate.convertAndSend(queue, body);
    }
}
